const { defineConfig } = require('@vue/cli-service');

module.exports = defineConfig({
    // 其他配置项...
    chainWebpack: (config) => {
        config
            .plugin('define')
            .tap((args) => {
                const vueFeatureFlags = {
                    // 定义 Vue 编译时特性标志
                    __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: false,
                    __VUE_OPTIONS_API__: true,
                    __VUE_PROD_DEVTOOLS__: false
                };
                args[0] = {
                    ...args[0],
                    ...vueFeatureFlags
                };
                return args;
            });
    }
});